import { Resolver } from '@nestjs/graphql';
import { Role } from './entities/role.entity';
import { BaseResolver } from 'src/common/mongodb/BaseResolver';
import { RoleService } from './role.service';
import { RoleDto } from './dto';
import { PowerService } from '../power/power.service';

@Resolver(() => Role)
export class RoleResolver extends BaseResolver<Role, typeof RoleDto>
  (Role, RoleDto, '后台角色') {
  constructor(private readonly roleService: RoleService,
    private readonly powerService: PowerService
  ) {
    super(roleService);
  }
}
